package com.njupt.yanglonglong.report.demo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @className: TimeUtil
 * @Description: TODO
 * @author: lpl
 * @date: 2021/5/13 19:55
 */
public class TimeUtil {

    static String strDateFormat = "yyyy-MM-dd HH:mm:ss";

    public static String format(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
        return sdf.format(date);
    }
}
